//1.导入  vue-router 包
import  VueRouter from 'vue-Router'

//导入对应的 路由组件 
import HomeContainer from './components/tabbar/HomeContainer.vue'
import MenberContainer from './components/tabbar/MenberContainer.vue'
import ShopcarContainer from './components/tabbar/ShopcarContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import NewsList from './components/news/NewsList.vue'
import PhtoList from './components/photos/PhtoList.vue'
import Shoot from  "./components/Shoot/Shoot.vue"
import Call from  './components/Call/Call.vue'





// 3, 创建路由对象
var router = new VueRouter({
    routes: [  //配置路由规则
      { path: '/'  ,  redirect: '/home'},
      { path: '/home',    component: HomeContainer},
      { path: '/menber',  component: MenberContainer},
      { path: '/shopcar', component: ShopcarContainer},
      { path: '/search',  component: SearchContainer},
      { path: '/home/newslist',  component: NewsList},
      { path: '/home/PhtoList',  component: PhtoList},
      { path: '/home/Shoot',  component:Shoot},
      { path: '/home/Call',  component: Call},
   



    ],
    linkActiveClass: 'mui-active' //覆盖默认的路由高亮的类， 本来只有首页才高亮. 默认的类为：router-link-active
   
  })

  //把路由对象暴露出去
  export default router